package com.index;

import java.io.Serializable;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

@ManagedBean
@SessionScoped
public class IndexMB implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 2746959691035430010L;

	private static final Log log =  LogFactory.getLog(IndexMB.class);
//	private static final Logger log =  Logger.getLogger(IndexMB.class);
	
	@PostConstruct
	public void init(){}
	
	public String goToJsfStudy(){
		log.info("This is info");
		log.debug("This is debug");
		log.warn("This is warn");
		log.error("This is error");
		log.fatal("This is fatal");
		return "jsf_index_page";
	}

	public String goToPrimerFacesStudy(){
		System.out.println("primerFaces_index_page");
		return "primerFaces_index_page";
	}
}
